package com.melon.controller;

import com.melon.entity.Response;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TianGua
 * @since 2024/6/26 - 16:39
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping()
    public Response<String> hello(@RequestParam(value = "info") String info) {
        return Response.ok("hello:" + info);
    }

}
